package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_key_work")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class KeyWorkModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer departmentId;
    @TableField(exist = false)
    private String departmentText;
    @TableField(exist = false)
    private String unitName;
    private String year;
    private String task;
    private String evolve;
    private Integer sort;
    @TableField(exist = false)
    private Integer thisYearCount;
    @TableField(exist = false)
    private Integer lastYearCount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private Integer page;
}
